<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/page/form/page-fieldset-template.xhtml">

	<ui:param name="pageViewBean" value="#{commonContentViewBean}" />
	<ui:param name="pvb" value="#{commonContentViewBean.parent.allView[1]}" />
	<ui:param name="pvb_user" value="#{commonContentViewBean.parent}" />
	<ui:param name="compId" value="#{pageViewBean.id}" />
	<ui:param name="compTitle" value="添加用户信息" />
	
	
	<!-- 
		 性别：
		<h:selectOneRadio value="#{commonContentViewBean.userBean.userSex}"
			styleClass="select-one-radio">
			<f:selectItems value="#{commonContentViewBean.sexMap}" />
		</h:selectOneRadio>
 	-->

	<ui:define name="compContent">
		<ui:decorate template="/layout/input/editable-template.xhtml">
		    <ui:param name="compColumnNum" value="1" />
		    <ui:param name="compLabelStyle" value="width:30%;"/>
		    <ui:param name="compContentStyle" value="width:70%;"/>
			<!-- 第一行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="userCode" />
				<ui:param name="compBean1Lable" value="用户编号：" />
				
				<ui:define name="compBean1Content"> 
					<h:inputText id="userCode" value="#{pageViewBean.userCode}"
				required="true" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第二行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="loginName" />
				<ui:param name="compBean1Lable" value="登录名：" />
				
				<ui:define name="compBean1Content"> 
					<h:inputText id="loginName" value="#{pageViewBean.loginName}"
				required="true" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第三行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="userRealName" />
				<ui:param name="compBean1Lable" value="用户真实姓名：" />
				
				<ui:define name="compBean1Content"> 
					<h:inputText id="userRealName" value="#{pageViewBean.userRealName}"
				required="true" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第四行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="userSex" />
				<ui:param name="compBean1Lable" value="性别：" />
				
				<ui:define name="compBean1Content"> 
					<p:selectOneRadio id="userSex" value="#{pageViewBean.userSex}">
						<f:selectItem itemLabel="男" itemValue="0" />
						<f:selectItem itemLabel="女" itemValue="1" />
					</p:selectOneRadio>
				</ui:define>
			</ui:decorate>
			
			<!-- 第五行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="userBirthday" />
				<ui:param name="compBean1Lable" value="出生日期：" />
				
				<ui:define name="compBean1Content"> 
					<p:calendar id="userBirthday" pattern="yyyy-MM-dd" value="#{pageViewBean.userBirthday}"/>
				</ui:define>
			</ui:decorate>
			
			<!-- 第六行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="userPoliceNum" />
				<ui:param name="compBean1Lable" value="警号：" />
				
				<ui:define name="compBean1Content"> 
					<h:inputText id="userPoliceNum" value="#{pageViewBean.userPoliceNum}"
				required="true" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第七行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="userMobile" />
				<ui:param name="compBean1Lable" value="手机号码：" />
				
				<ui:define name="compBean1Content"> 
					<h:inputText id="userMobile" value="#{pageViewBean.userMobile}"
				required="true" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第八行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="userIcardId" />
				<ui:param name="compBean1Lable" value="身份证号：" />
				
				<ui:define name="compBean1Content"> 
					<h:inputText id="userIcardId" value="#{pageViewBean.userIcardId}"
				required="true" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第九行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="selorg" />
				<ui:param name="compBean1Lable" value="选择组织机构：" />
				
				<ui:define name="compBean1Content"> 
					ssssssssss
				</ui:define>
			</ui:decorate>
			
		</ui:decorate>

	</ui:define>
	
	<ui:define name="compButtons">
		<p:commandButton
			actionListener="#{userManage.userAddAction}" title="保存"
			oncomplete="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/add.png" value="保存" style="margin:5px;"
			update="#{pvb.id}_userForm:#{pvb.id}_grid">
			<h:inputHidden value="#{pageViewBean.id}" />
		</p:commandButton>
		
		 <p:commandButton title="关闭" type="button"
			onclick="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/cancel.png" value="关闭" style="margin:5px;">
		</p:commandButton>
	</ui:define>
</ui:composition>